package com.zxy.lm.mapper;

import com.zxy.lm.entity.Book;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiusi
 * @since 2021-06-22
 */
@Mapper
public interface BookMapper extends BaseMapper<Book> {

    Integer decreaseBookStock(@Param("bookId") Integer bookId,@Param("count") Integer count);

    Integer increaseBookStock(@Param("bookId")int bookId,@Param("count") int count);

    Integer selectBookStockById(Integer bookId);
}
